<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Submit extends Model
{
    protected $table = 'submits';

    protected $fillable = [
    	'name',
    	'phone',
    	'age',
    	'sex',
    	'weihgt',
    	'bmi',
    	'province_id',
    	'history'
    ];

    public function province()
    {
        return $this->belongsTo('App\Models\Province','province_id');
    }
}
